<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>



<%
	String path = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<meta http-equiv="description" content="This is my page" />

<link rel="stylesheet" type="text/css" href="<%=path%>/css/base.css" />
<script>
	function check() {
		var regx = /^\d+$/gi;
		
		var roomno = document.getElementById("roomno").value;
		
		if (!regx.test(roomno)) {
			alert("请输入正确的宿舍号");
			return false;
		}
		
		return true; 
	}
</script>

</head>

<body leftmargin="2" topmargin="9"
	background='<%=path%>/images/allbg.gif'>
	<form action="<%=path%>/notice!add.action" name="formAdd" method="post"
		onsubmit="return check();">
		<table width="98%" align="center" border="0" cellpadding="4"
			cellspacing="1" bgcolor="#CBD8AC" style="margin-bottom: 8px">
			<tr bgcolor="#EEF4EA">
				<td colspan="3" background="<%=path%>/images/wbg.gif" class='title'>
					<span>添加</span>
				</td>
			</tr>
<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">区域：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><select
					name="data.area">
						<option value="A">A区</option>
						<option value="B">B区</option>
						<option value="C">C区</option>
						<option value="D">D区</option>
						<option value="E">E区</option>
						
				</select></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">楼栋：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><select
					name="data.flat">
						<option value="1">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="5">7</option>
						<option value="6">8</option>
				</select></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">宿舍编号：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					name="data.roomno" id="roomno"/></td>
			</tr>
			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">电费描述：</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><textarea
						name="data.content" cols="50" rows="5"></textarea></td>
			</tr>

			<tr align='center' bgcolor="#FFFFFF"
				onMouseMove="javascript:this.bgColor='red';"
				onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
				<td width="25%" bgcolor="#FFFFFF" align="right">&nbsp;</td>
				<td width="75%" bgcolor="#FFFFFF" align="left"><input
					type="submit" value="提交" /> &nbsp; <input type="reset" value="重置" />
					&nbsp;</td>
			</tr>
		</table>
	</form>
</body>
</html>
